<?php
/*
 * @Author: your name
 * @Date: 2020-10-21 11:04:51
 * @LastEditTime: 2020-12-28 10:14:36
 * @LastEditors: Please set LastEditors
 * @Description: 函谷盾主机管理
 * @FilePath: /special/application/adminapiv3/controller/module_manage/disguise/HgshieldHostController.php
 */
namespace app\adminapiv3\controller\module_manage\port_mask;

use app\adminapiv3\controller\BaseController;
use app\adminapiv3\service\module_manage\hgshield\HgshieldHostService;
use think\facade\Request;

class HgshieldHostController extends BaseController
{
    /**
     * @name: 列表
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2019-10-24 15:26:39
     */
    public function list ()
    {
        $input = Request::only(['name','ip','os','guise_port','online'],'post');
        $this->validate($input, 'DisguiseHost.listFilter');

        //根据资产组展示
        $input['group_id'] = $this->getLoginHostGroupId();

        $HgshieldHostService = new HgshieldHostService();
        $data = $HgshieldHostService->list($input);

        return $this->jsonOutPut($data);

    }
}